package com.example.demo.convert;

import com.example.demo.domain.entity.RoleDO;
import com.example.demo.domain.vo.RoleVO;
import com.example.demo.domain.param.RoleRequest;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface RoleConvert {
    RoleConvert INSTANCE = Mappers.getMapper(RoleConvert.class);

    RoleDO toDO(RoleRequest request);

    RoleVO toVO(RoleDO roleDO);
}
